* {
    box-sizing: border-box;
}

body {
    margin: 0;
}

.all {
    width: 100%;
    height: 100vh;
    display: flex;
}
@media (max-width:1260px){
    .all {
        flex-direction: column;
    }
}

nav {
    width: 366px;
    height: 100%;
    background-color: #000;
    padding: 75px;
}
@media (max-width:1260px){
    nav {
        width: 100%;
        height: 100px;
        padding: 10px 30px;
        display:flex;
        justify-content: space-between;
        flex-direction: row;
    }
}
@media (max-width:540px){
    nav {
        padding: 20px 10px;
        position: relative;
    }
}

.nav-logo {
    width: 150px;
    height: 150px;
    background-image: url(../img/pixar/logo.jpg);
    background-size: 110%;
    background-position: center;
    background-repeat: no-repeat;
    margin: auto;
}

@media (max-width:1260px){
    .nav-logo {
        width: 80px;
        height: 80px;
        background-size: contain;
        margin: 0;
    }
}

@media (max-width:540px){
    .nav-logo {
        width: 60px;
        height: 60px;
        margin: auto;
    }
}

.nav-logo:hover{
    opacity:0.5;
}

.nav-allbtns {
    margin-top: 30px;
    height: 150px;
    display:flex;
    flex-direction: column;
    justify-content: space-between;
    align-items:center;
}
@media (max-width:1260px){
    .nav-allbtns {
        width: 350px;
        height: 100%;
        margin: 0;
        display:flex;
        flex-direction: row;
        justify-content: space-between;
        align-items:center;
    }
}
@media (max-width:540px){
    .nav-allbtns {
        display:none;
    }
}
.nav-allbtns-hidden{
    display:none;
}
@media (max-width:540px){
    .nav-allbtns-hidden {
        display:inline-block;
        width: 120px;
        height: 230px;
        position: absolute;
        background-color: #333;
        z-index: 2;
        left:0;
        top:100px;
        padding:10px;
        transition:.5s;
        margin: 0;
        transform: translate(-120px,0px);
    }
}
.nav-btn {
    width: 100px;
    height: 40px;
    background-color: #eee;
    display: block;
    text-align: center;
    text-decoration: none;
    padding: 10px;
    border-radius: 10px;
    color: #555;
    font-weight: bold;
    transition: 0.2s;
}
@media (max-width:540px){
    .nav-btn {
        display: block;
        margin: unset;
        margin: 20px auto;
    }
}

.nav-btn:hover {
    background-color: #fb600c;
    color: #fff;
    transform: rotate(10deg);
}

.nav-btn2:hover {
    background-color: #986c1a;
    color: #fff;
    transform: rotate(-10deg);
}
.container {
    flex-grow:1;
    background-color: #eee;
    display:flex;
    justify-content: center;
    align-items: center;
}
@media (max-width:1260px){
    .container {
        width: 100%;
        padding: 50px 35px;
    }
}
@media (max-width:540px){
    .container {
        width: 100%;
        height: calc(100vh - 100px);
        padding:0;
    }
}

.content {
    width: 957px;
    height: 567px;
    display:flex;
    justify-content: space-between;
}
@media (max-width:1500px){
    .content {
        width: 800px;
        height: 570px;
        flex-wrap: wrap;
        align-content: space-between;
    }
}
@media (max-width:1260px){
    .content {
        width: 100%;
        height: 100%;
        margin: 0;
        align-content: space-between;
    }
}
@media (max-width:540px){
    .content {
        display:flex;
        flex-direction: column;
        flex-wrap: nowrap;
    }
}

.img {
    width: 32.5%;
    height: 100%;
    box-shadow: 3px 3px 10px #000;
    opacity: 0.5;
}
@media (max-width:540px){
    .img{
        box-shadow: unset; 
    }
}

.img-X {
    background-image: url(../img/pixar/toys.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}
@media (max-width:1500px){
    .img-X {
        width:100%;
        height: calc(50% - 10px);
    }
}
@media (max-width:540px){
    .img-X {
        width: 100%;
    }
}

.img-X:hover {
    transform: scale(1.3);
    opacity: 1;
    z-index: 5;
}
@media (max-width:1500px){
    .img-X:hover {
        transform: scale(1.1);
    }
}
@media (max-width:1260px){
    .img-X:hover {
        transform: scale(0.9);
    }
}
@media (max-width:540px){
    .img-X:hover {
        transform: scale(0.9);
        box-shadow: 3px 3px 10px #000;
    }
}

.img-Y {
    background-image: url(../img/pixar/monster4.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

@media (max-width:1500px){
    .img-Y {
        width:calc(50% - 5px);
        height: 50%;
    }
}
@media (max-width:540px){
    .img-Y {
        width: 100%;
    }
}

.img-Y:hover {
    transform: scale(1.3);
    opacity: 1;
    z-index: 5;
}

@media (max-width:1500px){
    .img-Y:hover {
        transform: scale(1.2);
    }
}
@media (max-width:1260px){
    .img-Y:hover {
        transform: scale(0.9);
    }
}
@media (max-width:540px){
    .img-Y:hover {
        transform: scale(0.9);
        box-shadow: 3px 3px 10px #000;
    }
}
.img-Z {
    background-image: url(../img/pixar/up.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
@media (max-width:1500px){
    .img-Z {
        width:calc(50% - 5px);
        height: 50%;
    }
}
@media (max-width:540px){
    .img-Z {
        width: 100%;
    }
}
.img-Z:hover {
    transform: scale(1.3);
    opacity: 1;
    z-index: 5;
}
@media (max-width:1500px){
    .img-Z:hover {
        transform: scale(1.2);
    }
}
@media (max-width:1260px){
    .img-Z:hover {
        transform: scale(0.9);
    }
}
@media (max-width:540px){
    .img-Z:hover {
        transform: scale(0.9);
        box-shadow: 3px 3px 10px #000;
    }
}

/* 漢堡選單 */
.ham-btn {
    width: 50px;
    height: 50px;
    background-color: #333;
    padding: 5px;
    border-radius: 5px;
    display: none;
    position: relative;

}
/* 空格表示後代 */
.ham-btn .line {
    width: 70%;
    height: 4px;
    background-color: #eee;
    border-radius: 2px;
    position: absolute;
    left: 50%;
    transform: translate(-50%,-50%);
    transition:1s;
}
.ham-btn .line-1{
    top:25%;
}
.ham-btn .line-2{
    top:50%;
}
.ham-btn .line-3{
    top:75%;
}
#ham-menu-switch:checked+.ham-btn .line-1 {
    top:50% ;
    transform: translate(-50%,-50%) rotate(45deg);
}
#ham-menu-switch:checked+.ham-btn .line-2 {
    display:none;
}
#ham-menu-switch:checked+.ham-btn .line-3 {
    top:50% ;
    transform: translate(-50%,-50%) rotate(-45deg);
}

@media (max-width:540px){
    .ham-btn {
        display: inline-block;
    }
    #ham-menu-switch:checked ~ .nav-allbtns-hidden {
        transform: translate(0px,0px)
    }
}